//
//  OneNewsItemView.h
//  BaoVn
//
//  Created by Le Anh Tai on 11/22/14.
//  Copyright (c) 2014 Le Anh Tai. All rights reserved.
//

#import "UnlimitedHorizaontalItemView.h"
#import "NJKWebViewProgress.h"

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
#import <WebKit/WebKit.h>
#endif

@interface OneNewsItemView : UIScrollView/*UnlimitedHorizaontalItemView*/<NJKWebViewProgressDelegate, UIWebViewDelegate, UIAlertViewDelegate>
{
    NJKWebViewProgress *_progressProxy;

    UIView *_progressContainer;
    UIProgressView *_progressView;
    
    UIAlertView *_alertView;
}

@property (nonatomic, strong) NSString *url;
@property (nonatomic, weak) id<UIWebViewDelegate>delegateWebView;

//#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
//@property (nonatomic, strong) WKWebView *webView;
//#else
@property (nonatomic, strong) UIWebView *webView;
//#endif

- (void)loadUrl:(NSString*)url;
- (NSString *)getCurrentWebViewTitle;

@end
